﻿using KnowledgeSource;
using NHunspell;
using System;
namespace Temporary_for_testing_knowledge_sources
{
    class Program
    {
        static void Main(string[] args)
        {
            MyThes thes = new MyThes(@"..\..\..\..\..\KnowledgeSource\KnowledgeSource\KnowledgeSource\DictionariesForNHunspell\th_pl_PL_v2.dat");
            Hunspell hunspell = new Hunspell();
            hunspell.Load(@"..\..\..\..\..\KnowledgeSource\KnowledgeSource\KnowledgeSource\DictionariesForNHunspell\pl_PL.aff",
                        @"..\..\..\..\..\KnowledgeSource\KnowledgeSource\KnowledgeSource\DictionariesForNHunspell\pl_PL.dic");
            FindingSynonyms fs = new FindingSynonyms(hunspell, thes);
            SpellChecker sp = new SpellChecker(hunspell);
            var x = new VerbToInfinitive(hunspell, thes);
            foreach (var v in fs.execute("Mam na imię Przemek"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in fs.execute("Poszlibyśmy wczoraj do baru"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in fs.execute("Idziem wczoraj do Samochodu"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in fs.execute("Idziem wczoraj do Samochód"))
            {
                Console.WriteLine(v);
            }

            foreach (var v in sp.execute("Idziem wczoraj do Samochód"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in sp.execute("Mam na imie przemek"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in sp.execute("Dokad idziemy?"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in sp.execute("jak sie masz"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in sp.execute("Idziem wczoraj do Samochod"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in sp.execute("Doked idziemy?"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in sp.execute("co slychuc"))
            {
                Console.WriteLine(v);
            }

            var p = new PolishCharacterRemove();
            Console.WriteLine(p.execute("ąęćźżółńśĄŚĆĘŁÓŃŹŻ"));

            
            foreach (var v in x.execute("Mam na imie Przemek"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in x.execute("Dokąd idziemy?"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in x.execute("jak się masz"))
            {
                Console.WriteLine(v);
            }
            foreach (var v in x.execute("gdybyśmy byli"))
            {
                Console.WriteLine(v);
            }
        }
    }
}
